<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<s:include value="/WEB-INF/pages/includes/head.jsp" />
<body class="two-column">
	<div id="container">
		<s:include value="/WEB-INF/pages/includes/header.jsp" /><s:set name="menu" value="'admin'" />
		<s:include value="/WEB-INF/pages/includes/menu.jsp" />
		<div id="cbody">
			<div id="sidebar1">
	  			<s:include value="/WEB-INF/pages/admin/includes/menu.jsp" />
	  		</div>
			<div id="content">
				<h2><s:text name="admin.h2" /></h2>
				<s:form label="%{getText('permissions')}" action="%{actionMethod + 'ForumPermissions'}" validate="true" id="save" cssClass="basic">
					<div style="display: none;">
						<s:hidden key="eid" />
	            		<s:hidden key="actionMethod" />
	            	</div>
					<s:iterator value="list">
	            	<fieldset>
	            		<legend><s:property value="principal.name" /></legend>
	            		<s:checkbox key="permission.createAnnounceTopic" />
            			<s:checkbox key="permission.createPost" />
            			<s:checkbox key="permission.createPostRequiresApproval" />
            			<s:checkbox key="permission.createStickyTopic" />
            			<s:checkbox key="permission.createTopic" />
            			<s:checkbox key="permission.createTopicRequiresApproval" />
            			<s:checkbox key="permission.deleteOwnPost" />
            			<s:checkbox key="permission.deleteOwnTopic" />
            			<s:checkbox key="permission.deletePost" />
            			<s:checkbox key="permission.deleteTopic" />
            			<s:checkbox key="permission.editOwnPost" />
            			<s:checkbox key="permission.editPost" />
            			<s:checkbox key="permission.lockOwnTopic" />
            			<s:checkbox key="permission.lockTopic" />
	            	</fieldset>
	            	</s:iterator>
	            	<p>
	            	<s:submit key="save" action="%{actionMethod + 'ForumPermissions'}" cssClass="first"/>
	            	</p>
	            </s:form>
            </div>
            <div class="floatClear"></div>
		</div>
		<s:include value="/WEB-INF/pages/includes/footer.jsp" />
	</div>
</body>
</html>